<!--
 * @Description: 
 * @Author: yeke
 * @Date: 2023-08-25 19:45:55
 * @LastEditors: yeke
 * @LastEditTime: 2024-01-13 12:28:01
-->
<template>
  <view class="content">
    <image class="logo" src="/static/logo.png" />
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
    <yeke-preview-image
      :url="previewImageUrl"
      :isTouchDeg="true"
      :index="0"
      :showOperation="true"
      closeTop="60"
      countTop="60"
      @close="closePreviewImage"
    ></yeke-preview-image>
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { YekePreviewImage } from "@/uni_modules/yeke-preview-image/components/yeke-preview-image";
const previewImageUrl = ref<string | string[]>([
  "/static/641.webp",
  "/static/123.jpeg",
]);
const title = ref("Hello");

const closePreviewImage = () => {
  // 关闭预览图片操作...
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
